.\" $OpenBSD: EVP_camellia_128_cbc.3,v 1.2 2020/06/24 18:15:00 jmc Exp $
.\" selective merge up to: OpenSSL 7c6d372a Nov 20 13:20:01 2018 +0000
.\"
.\" This file was written by Ronald Tse <ronald.tse@ribose.com>
.\" Copyright (c) 2017 The OpenSSL Project.  All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\"
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\"
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in
.\"    the documentation and/or other materials provided with the
.\"    distribution.
.\"
.\" 3. All advertising materials mentioning features or use of this
.\"    software must display the following acknowledgment:
.\"    "This product includes software developed by the OpenSSL Project
.\"    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
.\"
.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
.\"    endorse or promote products derived from this software without
.\"    prior written permission. For written permission, please contact
.\"    openssl-core@openssl.org.
.\"
.\" 5. Products derived from this software may not be called "OpenSSL"
.\"    nor may "OpenSSL" appear in their names without prior written
.\"    permission of the OpenSSL Project.
.\"
.\" 6. Redistributions of any form whatsoever must retain the following
.\"    acknowledgment:
.\"    "This product includes software developed by the OpenSSL Project
.\"    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: June 24 2020 $
.Dt EVP_CAMELLIA_128_CBC 3
.Os
.Sh NAME
.Nm EVP_camellia_128_cbc ,
.Nm EVP_camellia_192_cbc ,
.Nm EVP_camellia_256_cbc ,
.Nm EVP_camellia_128_cfb ,
.Nm EVP_camellia_192_cfb ,
.Nm EVP_camellia_256_cfb ,
.Nm EVP_camellia_128_cfb1 ,
.Nm EVP_camellia_192_cfb1 ,
.Nm EVP_camellia_256_cfb1 ,
.Nm EVP_camellia_128_cfb8 ,
.Nm EVP_camellia_192_cfb8 ,
.Nm EVP_camellia_256_cfb8 ,
.Nm EVP_camellia_128_cfb128 ,
.Nm EVP_camellia_192_cfb128 ,
.Nm EVP_camellia_256_cfb128 ,
.Nm EVP_camellia_128_ecb ,
.Nm EVP_camellia_192_ecb ,
.Nm EVP_camellia_256_ecb ,
.Nm EVP_camellia_128_ofb ,
.Nm EVP_camellia_192_ofb ,
.Nm EVP_camellia_256_ofb
.Nd EVP Camellia cipher
.Sh SYNOPSIS
.In openssl/evp.h
.Ft const EVP_CIPHER *
.Fn EVP_camellia_128_cbc void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_192_cbc void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_256_cbc void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_128_cfb void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_192_cfb void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_256_cfb void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_128_cfb1 void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_192_cfb1 void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_256_cfb1 void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_128_cfb8 void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_192_cfb8 void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_256_cfb8 void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_128_cfb128 void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_192_cfb128 void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_256_cfb128 void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_128_ecb void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_192_ecb void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_256_ecb void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_128_ofb void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_192_ofb void
.Ft const EVP_CIPHER *
.Fn EVP_camellia_256_ofb void
.Sh DESCRIPTION
These functions provide the Camellia encryption algorithm in the
.Xr evp 3
framework.
They use 128, 192, and 256-bit keys in the following modes, respectively:
CBC, CFB with 1-bit shift, CFB with 8-bit shift, CFB with 128-bit shift,
ECB, and OFB.
.Pp
.Fn EVP_camellia_128_cfb ,
.Fn EVP_camellia_192_cfb ,
and
.Fn EVP_camellia_256_cfb
are aliases for
.Fn EVP_camellia_128_cfb128 ,
.Fn EVP_camellia_192_cfb128 ,
and
.Fn EVP_camellia_256_cfb128 ,
implemented as macros.
.Sh RETURN VALUES
These functions return an
.Vt EVP_CIPHER
structure that provides the implementation of the symmetric cipher.
.Sh SEE ALSO
.Xr evp 3 ,
.Xr EVP_EncryptInit 3
.Sh HISTORY
These functions first appeared in OpenSSL 0.9.8c
and have been available since
.Ox 4.5 .
